package com.rc.evcharger.service.order;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.common.dto.ChargeBalaceDto;
import com.rc.evcharger.mapper.order.OrderDetailMapper;
import com.rc.evcharger.model.elec.ElecStationPrice;
import com.rc.evcharger.model.order.OrderDetail;
import com.rc.evcharger.model.order.OrderDetailExample;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by sven on 2019/09/23.
 */
public interface OrderDetailService extends BaseService<Long, OrderDetail, OrderDetailExample, OrderDetailMapper> {

    List<OrderDetail> queryByOrderId(Long orderId);

    OrderDetail selectLastByOrderId(Long orderId);

    void saveByCost(Long orderId, Long elecPileId, BigDecimal chargeAmount,
                    BigDecimal baseAmount, BigDecimal serviceAmount, BigDecimal soc, BigDecimal power, Date date);

    void saveByCharging(Long orderId, ChargeBalaceDto cbdto, ElecStationPrice elecStationPrice, BigDecimal iterBasePriceValue, BigDecimal iterAllPriceValue);
}
